﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBUtil.Provider.MySql
{
    /// <summary>
    /// DBAccess的扩展方法
    /// </summary>
    public static class DBAccessExtensions
    {
        #region IsMySql IsMySql()
        /// <summary>
        /// 是否是MySql数据库
        /// </summary>
        /// <param name="db"></param>
        /// <returns></returns>
        public static bool IsMySql(this DBAccess db)
        {
            return db.DBType == Consts.ServerType;
        }
        #endregion
    }
}
